package com.java.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.java.common.utils.PageUtils;
import com.java.common.utils.Query;
import com.java.mapper.ItemsParamDao;
import com.java.pojo.ItemsParam;
import com.java.service.ItemsParamService;
import org.springframework.stereotype.Service;
import java.util.Map;

@Service("itemsParamService")
public class ItemsParamServiceImpl extends ServiceImpl<ItemsParamDao, ItemsParam> implements ItemsParamService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ItemsParam> page = this.page(
                new Query<ItemsParam>().getPage(params),
                // 拼接查询条件
                new LambdaQueryWrapper<ItemsParam>()
        );

        return new PageUtils(page);
    }

}